const mongoose = require('mongoose')    //引入Mongoose
const Schema = mongoose.Schema          //声明Schema

const carouselSchema = new Schema({
    id:{unique:true,type:String},
    pic:{type:String},
    url:{type:String}
})

mongoose.model('Carousel',carouselSchema)